Shave another 17% of read performance out on GPX read by eliminating a
authorrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 10 Jul 2013 04:47:02 +0000 (04:47 +0000)
committerrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 10 Jul 2013 04:47:02 +0000 (04:47 +0000)
copy/converstion on each incoming tag.

gpsbabel/gpx.cc

index 0c7eb5c10642adf8f64413dda7b8855191cb5f96..245839b4b03b5e9ddc15abe2ce42fe91010dbaba 100644 (file)
@@ -681,7 +681,7 @@ gpx_start(void* data, const XML_Char* xml_el, const XML_Char** xml_attr)
    */
   *(char*) cdatastr.mem = 0;
 
-  tag = get_tag(qPrintable(current_tag), &passthrough);
+  tag = get_tag(current_tag, &passthrough);
   switch (tag) {
   case tt_gpx:
     tag_gpx(attr);
@@ -932,7 +932,7 @@ gpx_end(void* data, const XML_Char* xml_el)
     fprintf(stderr, "Mismatched tag %s.  Expected %s\n", el, qPrintable(s));
   }
 
-  tag = get_tag(qPrintable(current_tag), &passthrough);
+  tag = get_tag(current_tag, &passthrough);
   switch (tag) {
     /*
      * First, the tags that are file-global.